Skip to content

Declare SQLite for the functional tests - #59

Open
jacobmichels wants to merge 2 commits into
jacob/tecnix-gc-stack-boundsfrom
jacob/tecnix-functional-tests-sqlite
Open

Declare SQLite for the functional tests#59
jacobmichels wants to merge 2 commits into
jacob/tecnix-gc-stack-boundsfrom
jacob/tecnix-functional-tests-sqlite

Conversation

@jacobmichels

@jacobmichels jacobmichels commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

The cache tests in #57 and #58 invoke sqlite3, but the isolated functional-test package does not provide it. All six test jobs fail when the tests reach that command. Development-shell checks missed the undeclared dependency.

Add sqlite to the package arguments and nativeBuildInputs in tests/functional/package.nix. nativeBuildInputs lists the tools available inside the isolated build. This is two added lines, with no changes to evaluator behavior or test assertions.

This PR is the bottom layer of the native GitHub stack: #59#57#58. It supplies the SQLite test dependency for the two feature layers above it.

Checks

  • Isolated Linux functional-test package: 215 passed, 0 failed, 10 skipped.
  • Repository formatter: all six checks passed.
nix build --file ci/gha/tests/wrapper.nix componentTests.nix-functional-tests -L --arg withInstrumentation false --argstr stdenv stdenv --no-link --max-jobs 1 --cores 4 --option sandbox true
nix develop -c ./maintainers/format.sh

@jacobmichels
jacobmichels force-pushed the jacob/tecnix-functional-tests-sqlite branch from 3fac8ae to 745bd34 Compare September 6, 2026 00:15
@jacobmichels
jacobmichels changed the base branch from main to jacob/tecnix-provenance-write-race September 6, 2026 00:16
@jacobmichels
jacobmichels marked this pull request as draft September 6, 2026 03:17
@jacobmichels
jacobmichels force-pushed the jacob/tecnix-functional-tests-sqlite branch from 745bd34 to ba8719c Compare September 10, 2026 17:34
@jacobmichels
jacobmichels removed this pull request from stack #62 September 10, 2026 17:35
@jacobmichels
jacobmichels added this pull request to stack #65 September 10, 2026 17:35
@jacobmichels
jacobmichels marked this pull request as ready for review September 10, 2026 17:36
@jacobmichels
jacobmichels removed this pull request from stack #65 September 10, 2026 20:35
@jacobmichels
jacobmichels force-pushed the jacob/tecnix-functional-tests-sqlite branch from ba8719c to d9f961a Compare September 10, 2026 20:36
@jacobmichels
jacobmichels changed the base branch from jacob/tecnix-provenance-write-race to jacob/tecnix-gc-stack-bounds September 10, 2026 20:36
@jacobmichels
jacobmichels added this pull request to stack #66 September 10, 2026 20:36
The cache tests invoke sqlite3 directly. Declare it in the isolated test package instead of relying on development-shell tools.
The VM invokes the functional tests with its own runtimeInputs, so the package nativeBuildInputs do not put sqlite3 on its PATH. Include SQLite for the cache rejection and revision isolation tests.

Assisted-By: devx/f59ca034-15b4-4cf6-a5c2-492b3ece7ba4
@jacobmichels
jacobmichels force-pushed the jacob/tecnix-functional-tests-sqlite branch from d9f961a to ad4580b Compare September 11, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant